package com.icebergteam.warfacewidget.core;

import com.icebergteam.warfacewidget.core.LogManager;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import android.widget.RemoteViewsService;

public abstract class ListViewFactory implements
		RemoteViewsService.RemoteViewsFactory {
	public static String className = ListViewFactory.class
			.getCanonicalName();
	public static String POS_INTENT_KEY = String.format("%s.POS_INTENT_KEY",
			className);
	protected Context context;
	protected Intent intent;
	
	protected int count;

	public ListViewFactory(){
		
	}
	public ListViewFactory(Context ctxt, Intent intent) {
		this.context = ctxt;
		this.intent = intent;
	}
		

	public void onDestroy() {
		LogManager.LogV(ListViewFactory.className, LogManager.getExecuteMethodName());
		
	}

	
	public int getCount() {
		LogManager.LogV(ListViewFactory.className, LogManager.getExecuteMethodName(),
				count);
		return count;
	}

	@Override
	abstract public RemoteViews getViewAt(int position); 

	
	public RemoteViews getLoadingView() {
		return null;
	}

	
	public int getViewTypeCount() {
		return (1);
	}

	
	public long getItemId(int position) {
		return (position);
	}

	
	public boolean hasStableIds() {
		return (true);
	}

	public void onCreate() {
		
		
	}

	
	public void onDataSetChanged() {
		
		
	}
}